<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        //phpinfo();
        $exif = exif_read_data('./testimg01.jpg', 'IFD0');
        echo $exif===false ? "无信息可显示.<br />\n" : "照片信息如下<br />\n";

        foreach ($exif as $key => $section) {
            foreach ($section as $name => $val) {
                echo "$key.$name: $val<br />\n";
            }
        }
        ?>
    </body>
</html>
